<?php
namespace app\Logic;

class Factory
{
    /**
     * @param string $name
     * @param $arguments
     * @return Container
     */
    public static function make(string $name, $arguments) : Container
    {
        $application = "app\\Logic\\{$name}\\Application";

        return new $application($arguments);
    }


    /**
     * @param string $name
     * @param $arguments
     * @return Container
     */
    public static function __callStatic(string $name,$arguments) : Container
    {
        return self::make($name, $arguments);
    }
}